package 适配器模式;

/**
 * @program: leetcode
 * @description: 委托模式
 * @author: HuRan QQ1345122890
 * @create: 2021-11-07 12:54
 */
public class PrintBanner2 {
    private Banner banner;

    public PrintBanner2(String s) {
        this.banner = new Banner(s);
    }

    public void printWeak() {
        banner.showWithParen();
    }


    public void printString() {
        banner.showWithAster();
    }

}